import java.util.Scanner;

public class Main1814 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int m= sc.nextInt();//批发了m斤苹果准备出售
        int x=sc.nextInt();//批发价是x元/斤
        int n = sc.nextInt();//n天每天苹果的市场单价
        int[] arr = new int[n];
        for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        }
        int max=0;//市场价最好天数
        for (int i = 0; i < arr.length; i++) {
            if (max < arr[i]) {
                max = arr[i];
                }
            }
        int a=0;
        for (int i = 0; i < arr.length; i++) {
            if (arr[i]==max){
                a=i+1;//出来市场价最好的时间
                break;
            }
        }
        System.out.print(a+" ");
        int s=max*m;
        int l=s-m*x;
        System.out.print(l);

    }
}
